﻿@model prohomework.Models.showwork

@{
    ViewBag.Title = "showwork";
}


<fieldset>
    <legend>showwork</legend>

    <div class="display-label">
         作 业 号：
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.zuoyehao)
    </div>

    <div class="display-label">
       作业名称：
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.zuoyemingchen)
    </div>

    <div class="display-label">
       作业说明:
    </div>
    <div class="display-field">
        @Html.Raw(Model.zuoyeshuoming)


                                  @if (ViewData["pic"]!=null)
                                   {
		                              <table  class=".table-bordered" align="center" width="100%">
		                              <tr>
		                                <td align="center"> 

                                            @if( Model.filecontenttype.ToString()=="application/x-shockwave-flash")
                                            {
			 	
		                              <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0">
		                              <param name="movie" value="@Url.Action("showdetail", new {id=ViewData["id"] })">
		                              <param name="quality" value="high">
		                              <embed  quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object>
                                            }
                                            else if (Model.filecontenttype.ToString() == "image/gif" || Model.filecontenttype.ToString() == "image/pjpeg")
                                            {

                                    	 <img src="@Url.Action("showdetail","Teacher",new {id=Model.id })"/>
                                             
                                            }
		  	                           else
                                       {
                                       //  <img src="@Url.Action("showdetail", new {id=ViewData["id"] })"/>       
		                                 <a href="@Url.Action("download", new {id=ViewData["id"] })">下载文件： @Model.fileName</a>
                                            }
			                             </td>
		                              </tr>
		                              </table>

                        		}



    </div>

    <div class="display-label">
         答案说明：
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.datishuoming)
    </div>

    <div class="display-label">
       答案文件：
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.zuoyewenjian)
      <a href="@Url.Action("Download", "Teacher",new {xuehao= Session["username"],workid=ViewData["workid"]})">下载</a>
    </div>

    <div class="display-label">
       提交时间：
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.tijiaoshijian)
    </div>

    <div class="display-label">
       批阅：
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.piyuemingchen)
    </div>

    <div class="display-label">
         批注：
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.pizhu)
    </div>

    <div class="display-label">
         批阅时间：
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.piyueshijian)
    </div>
</fieldset>

